package com.cw2.behavioral.state;

/**
 * 状态模式
 */
public class MainTest {

    // 测试
    public static void main(String[] args) {
        TeamState state = new VocationState();
        SKTTeam sktTeam = new SKTTeam(state);
        sktTeam.startGame();

        // 可以设置自定义的状态
        state = state.next();
        sktTeam.setTeamState(state);
        sktTeam.startGame();
    }
}
